home *** CD-ROM | disk | FTP | other *** search
- property viewDistance
- property growDistance
- property blendStrength
-
- on exitFrame me
- set shrinkH = (the locH of sprite (the spriteNum of me)) - (the mouseH)
- set shrinkV = (the locV of sprite (the spriteNum of me)) - (the mouseV)
-
- set spriteSize = (-((shrinkH*shrinkH)/viewDistance)+growDistance)+(-((shrinkV*shrinkV)/viewDistance))
-
- set the width of sprite (the spriteNum of me) to spriteSize
- set the height of sprite (the spriteNum of me) to the width of sprite (the spriteNum of me)
- set the blend of sprite (the spriteNum of me) to (spriteSize*blendStrength/100)
- end
-
- on getPropertyDescriptionList
- set p_list = [¨
- #viewDistance: [ #default:225, #format:#integer, #comment:"View Distance",#range: [#min:100,#Max:1200]] ,¨
- #growDistance: [ #default:100, #format:#integer, #comment:"Grow Distance", #range:[#min:100,#Max:200]],¨
- #blendStrength: [ #default:100, #format:#integer, #comment:"Blend Strength", #range:[#min:0,#Max:100]] ¨
- ]
- return p_list
- end
-